You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ron Piterman (JIRA)" <ta...@jakarta.apache.org> on 2005/07/16 20:11:16 UTC

[jira] Created: (TAPESTRY-409) second FieldLabel behaivour

second FieldLabel behaivour
---------------------------

         Key: TAPESTRY-409
         URL: http://issues.apache.org/jira/browse/TAPESTRY-409
     Project: Tapestry
        Type: Bug
  Components: Framework  
    Versions: 4.0    
    Reporter: Ron Piterman


Using two FieldLabel components for the same Field causes an exception. Don't know if that is wished.
BUT: placing the second one after the field results in a permanent stale link when submitting.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Commented: (TAPESTRY-409) second FieldLabel behaivour

Posted by "Ron Piterman (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-409?page=comments#action_12316380 ] 

Ron Piterman commented on TAPESTRY-409:
---------------------------------------

I won't - this was a typo error in my page which made me quite sick finding - 

it would be better if the implementation could point this out instead of resulting in a stale link 

> second FieldLabel behaivour
> ---------------------------
>
>          Key: TAPESTRY-409
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-409
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Ron Piterman

>
> Using two FieldLabel components for the same Field causes an exception. Don't know if that is wished.
> BUT: placing the second one after the field results in a permanent stale link when submitting.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Commented: (TAPESTRY-409) second FieldLabel behaivour

Posted by "Jonas Maurus (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-409?page=comments#action_12317265 ] 

Jonas Maurus commented on TAPESTRY-409:
---------------------------------------

I don't know if the original reporter was bitten by the same bug as I was, but I tracked it down and reported/patched it as TAPESTRY-517. I'd guess that this bug can be closed unless the original reporter has something to add...

> second FieldLabel behaivour
> ---------------------------
>
>          Key: TAPESTRY-409
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-409
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Ron Piterman

>
> Using two FieldLabel components for the same Field causes an exception. Don't know if that is wished.
> BUT: placing the second one after the field results in a permanent stale link when submitting.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Commented: (TAPESTRY-409) second FieldLabel behaivour

Posted by "Jonas Maurus (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-409?page=comments#action_12316458 ] 

Jonas Maurus commented on TAPESTRY-409:
---------------------------------------

There is more to this bug. At least for Checkbox-components the ID generation is off in Beta 2:

<!-- page definition -->
  <component id="bookkeeperRCB" type="Checkbox">
    <binding name="selected" value="hasBookkeeperRole" />
  </component>
  
  <component id="adminRCB" type="Checkbox">
    <binding name="selected" value="hasAdministratorRole" />
  </component>

<!-- page template -->
<tr>
  <td><input jwcid="bookkeeperRCB" type="checkbox" value="Y" /></td>
  <td><label jwcid="@FieldLabel" for="bookkeeper" 
            field="ognl:components.bookkeeperRCB" displayName="message:form.roles.bookkeeper">Bookkeeper</label></td>
</tr>
<tr>
  <td><input jwcid="adminRCB" type="checkbox" value="Y" /></td>
  <td><label jwcid="@FieldLabel" for="admin" 
           field="ognl:components.adminRCB" displayName="message:form.roles.administrator">Administrator</label></td>
</tr>

yields:

<tr>
  <td><input type="checkbox" name="bookkeeperRCB" id="bookkeeperRCB" value="Y"/></td>
  <td><label for="bookkeeperRCB$0">Bookkeeper</label></td>
</tr>
<tr>
  <td><input type="checkbox" name="adminRCB" checked="checked" id="adminRCB" value="Y"/></td>
  <td><label for="adminRCB$0">Administrator</label></td>
</tr>

as you can see the generated fieldnames ("bookkeeperRCB$0"...) are wrong. This always results in a stale-link exception.

> second FieldLabel behaivour
> ---------------------------
>
>          Key: TAPESTRY-409
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-409
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Ron Piterman

>
> Using two FieldLabel components for the same Field causes an exception. Don't know if that is wished.
> BUT: placing the second one after the field results in a permanent stale link when submitting.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Resolved: (TAPESTRY-409) second FieldLabel behaivour

Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-409?page=all ]
     
Howard M. Lewis Ship resolved TAPESTRY-409:
-------------------------------------------

    Resolution: Won't Fix
     Assign To: Howard M. Lewis Ship

This can now be addressed by setting the second FieldLabel's prerender parameter to false.

> second FieldLabel behaivour
> ---------------------------
>
>          Key: TAPESTRY-409
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-409
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Ron Piterman
>     Assignee: Howard M. Lewis Ship

>
> Using two FieldLabel components for the same Field causes an exception. Don't know if that is wished.
> BUT: placing the second one after the field results in a permanent stale link when submitting.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Commented: (TAPESTRY-409) second FieldLabel behaivour

Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-409?page=comments#action_12316371 ] 

Howard M. Lewis Ship commented on TAPESTRY-409:
-----------------------------------------------

There's some complicated caching and synchronizing going on between FieldLabel and any/all of the form element components.  Why would you have two labels for the same field?

> second FieldLabel behaivour
> ---------------------------
>
>          Key: TAPESTRY-409
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-409
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Ron Piterman

>
> Using two FieldLabel components for the same Field causes an exception. Don't know if that is wished.
> BUT: placing the second one after the field results in a permanent stale link when submitting.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Commented: (TAPESTRY-409) second FieldLabel behaivour

Posted by "Ron Piterman (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-409?page=comments#action_12317304 ] 

Ron Piterman commented on TAPESTRY-409:
---------------------------------------

the original reporter has nothing to add :)

> second FieldLabel behaivour
> ---------------------------
>
>          Key: TAPESTRY-409
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-409
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Ron Piterman

>
> Using two FieldLabel components for the same Field causes an exception. Don't know if that is wished.
> BUT: placing the second one after the field results in a permanent stale link when submitting.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org