An exception has occurred.


You may continue by restarting the session.




        [ +/- ] Exception:
Unable to update OGNL expression '<parsed OGNL expression>' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated. 
                
                        org.apache.tapestry.BindingException
                
                
                
                        Unable
to update OGNL expression '<parsed OGNL expression>' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated.
                
                
                
                        binding:
                        ExpressionBinding[Home/galleryWidget tableSize]

                
                        location:
                        classpath:/org/trails/demo/components/Gallery.jwc, line 
9, column 46
4                                                
allow-informal-parameters="yes">
5       <parameter name="autoPagingContent"/>
6       <parameter name="collectionContent"/>
7

8       <component id="tableSizeSelect" type="PropertySelection">
9               <binding name="value" value="tableSize"/>
10              <binding name="model" value="tableSizeModel"/>
11      </component>
12

13      <component id="pagingSpanSelect" type="PropertySelection">
14              <binding name="value" value="pagingSpan"/>

                

                     

 
        
        

        [ +/- ] Exception:
Unable to update OGNL expression '<parsed OGNL expression>' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated. 
                
                        org.apache.hivemind.ApplicationRuntimeException
                
                
                
                        Unable
to update OGNL expression '<parsed OGNL expression>' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated.
                
                
                
                        component:
                        [EMAIL PROTECTED]/galleryWidget]

                
                        location:
                        context:/WEB-INF/Home.html, line 9
4               <div id="page.title">
5                       <span jwcid="@Insert" value="Listings"/>
6               </div>
7       </h1>
8

9       <div jwcid="[EMAIL PROTECTED]:Gallery"
10                      collectionType="ognl:@[EMAIL PROTECTED]"
11                      component="galleryWidget"
12                      collectionContent="collectionContent"
13                      autoPagingContent="autoPagingContent"
14                      tableSize="1"

                

                     

 
        
        

        [ +/- ] Exception:
           Binding with value 1 (StaticBinding[1]) may not be updated.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 11:49:25 -0400










An exception has occurred.


You may continue by restarting the session.





        [ +/- ] Exception:
           Unable to parse OGNL expression '(index % tableSize) == 0': For 
input string: "tableSize"
        
        
                
                        org.apache.tapestry.BindingException

                
                
                
                        Unable to parse OGNL expression '(index % tableSize) == 
0': For input string: "tableSize"

                
                
                
                        binding:

                        ExpressionBinding[Home/galleryWidget (index % 
tableSize) == 0]


                
                        location:

                        classpath:/org/trails/demo/components/Gallery.html, 
line 32
27
        <span jwcid="[EMAIL PROTECTED]">

28
                <table width="100%">

29
                        <tr>

30
                                <span jwcid="[EMAIL PROTECTED]" 
source="ognl:collection" value="ognl:currentObject" index="ognl:index">

31
                                        <span jwcid="@If" 
condition="ognl:tableSize">

32
                                                <span jwcid="@If" 
condition="ognl:(index % tableSize) == 0">

33
                                                        <span jwcid="@Insert" 
value="</tr><tr>" raw="true"/>

34
                                                </span>

35
                                        </span>

36
                                        <td>

37
                                        <a jwcid="[EMAIL PROTECTED]" 
listener="listener:edit" parameters="ognl:currentObject">



                

                    
 

 
        
        

        [ +/- ] Exception:
           Unable to parse OGNL expression '(index % tableSize) == 0': For 
input string: "tableSize"
        
        
                
                        org.apache.hivemind.ApplicationRuntimeException

                
                
                
                        Unable to parse OGNL expression '(index % tableSize) == 
0': For input string: "tableSize"

                
                
                

                    
 

 
        
        

        [ +/- ] Exception:
           For input string: "tableSize"
        
        
                
                        java.lang.NumberFormatException
                
                
                
                        For input string: "tableSize"
                
                
                

                


                
                        Stack Trace:
                

                
                        
                                
                                        
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
                                        java.lang.Long.parseLong(Long.java:403)
                                        java.lang.Long.parseLong(Long.java:461)
                                        ognl.OgnlOps.longValue(OgnlOps.java:220)
                                        ognl.OgnlOps.remainder(OgnlOps.java:932)
                                        
ognl.ASTRemainder.getValueBody(ASTRemainder.java:51)
                                        
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)
                                        
ognl.SimpleNode.getValue(SimpleNode.java:246)
                                        ognl.ASTEq.getValueBody(ASTEq.java:50)
                                        
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)
                                        
ognl.SimpleNode.getValue(SimpleNode.java:246)
                                        ognl.Ognl.getValue(Ognl.java:494)
                                        ognl.Ognl.getValue(Ognl.java:458)
                                        
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:153)
                                        
ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:523)
                                        
ognl.Ognl.compileExpression(Ognl.java:141)

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 09:49:01 -0400








Hi Nick,

Attached is my Home.html... Home.java

The other modules are original as posted yesterday the same. I basically 
specified the parameter bindings in the template at the widget definition.

The select component keeps punching back to 1 when I attempt to change. I even 
added getter/setter to Home.JAVA for the parameters.

Home.JAVA
    @Persist
    public abstract String getTableSize();
    public abstract void setTableSize(String tableSize);

    @Persist
    public abstract String getPagingSpan();
    public abstract void setPagingSpan(String pagingSpan);

Home.HTML
    <div jwcid='[EMAIL PROTECTED]:Gallery'
            collectionType='ognl:@[EMAIL PROTECTED]'
            component='galleryWidget'
            collectionContent='collectionContent'
            autoPagingContent='autoPagingContent'
            tableSize='1'
            pagingSpan='5'
        >

I also tried specifying the parameter as a property within the JWC file and 
that failed as well.

Any ideas?


Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 09:35:54 -0400

Nick,

Prior attempts to specify             
    tableSize='tableSize'> 
inside Home.html caused NumberFormatException because the rendering cycle was 
acting on the text above in my arithmetic condition.
   <span jwcid='@If' condition='ognl:(index % tableSize) == 0'>

I am giving it a try now...

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Wed, 10 Oct 2007 14:32:08 -0400

 I decided to model T-4 examples and it still produces exception

    private static final String[] tableSizeOptions = new String[] { '1', '2', 
'3', '4', '5', '10', '25', '50', '100',
            '500', '1000', '2500', '5000', '10000', '25000', '50000' };

    private static final String[] pagingSpanOptions = new String[] { '5', '10', 
'15', '20', '25' };

    public IPropertySelectionModel getTableSizeModel()
    {
        if (tableSizeModel == null)
            tableSizeModel = new StringPropertySelectionModel(tableSizeOptions);

        return tableSizeModel;
    }

    public IPropertySelectionModel getPagingSpanModel()
    {
        if (pagingSpanModel == null)
            pagingSpanModel = new 
StringPropertySelectionModel(pagingSpanOptions);

        return pagingSpanModel;
    }

    <component id='tableSizeSelect' type='PropertySelection'>
          <binding name='value' value='tableSize'/>
          <binding name='model' value='tableSizeModel'/>
    </component>

    <component id='pagingSpanSelect' type='PropertySelection'>
          <binding name='value' value='pagingSpan'/>
          <binding name='model' value='pagingSpanModel'/>
    </component>

    @Persist
    public abstract String getTableSize();

    @Persist
    public abstract String getPagingSpan();


<select jwcid='tableSizeSelect' onchange='tapestry.form.refresh(this.form)'/>

<select jwcid='pagingSpanSelect' onchange='tapestry.form.refresh(this.form)'/>

I cannot do arithmetic on this property due to divide by zero.

So how do you set the DEFAULT VALUE of a property ? I see no support for doing 
this.

I cannot use parameters because it states the parameter cannot be updated.

Please advise... thank You


An exception has occurred.You may continue by restarting the session.
        [ +/- ] Exception:         Unable to parse OGNL expression '(index % 
tableSize) == 0': / by zero                                                     
   org.apache.tapestry.BindingException
                                                                        Unable 
to parse OGNL expression '(index % tableSize) == 0': / by zero
                                                                        binding:
                        ExpressionBinding[Home/galleryWidget (index % 
tableSize) == 0]
                                        location:
                        classpath:/org/trails/demo/components/Gallery.html, 
line 31
26

27
        <span jwcid='[EMAIL PROTECTED]'>
28
                <table width='100%'>
29
                        <tr>
30
                                <span jwcid='[EMAIL PROTECTED]' 
source='ognl:collection' value='ognl:currentObject' index='ognl:index'>
31
                                        <span jwcid='@If' 
condition='ognl:(index % tableSize) == 0'>
32
                                                <span jwcid='@Insert' 
value='</tr><tr>' raw='true'/>
33
                                        </span>
34
                                        <td>
35
                                        <a jwcid='[EMAIL PROTECTED]' 
listener='listener:edit' parameters='ognl:currentObject'>
36
                                                <img jwcid='@Image'

                                    
                        [ +/- ] Exception:         Unable to parse OGNL 
expression '(index % tableSize) == 0': / by zero

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!
Peek-a-boo FREE Tricks & Treats for You! Get 'em!
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! Try 
now!

Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! Try 
now!

_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews

Reply via email to