tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davor Hrg (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-2288) Remove Label from BeanBlockSource contributions (edit-blocks)
Date Thu, 20 Mar 2008 21:43:24 GMT
Remove Label from BeanBlockSource contributions (edit-blocks)

                 Key: TAPESTRY-2288
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2288
             Project: Tapestry
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.0.11
            Reporter: Davor Hrg

BeanBlockSource contributions for view and edit block are not symetric.

Edit block must have a label (which is nice and easy to connect it with the edit field),
but this makes edit block unusable for other than default BeanEditor.

Currently beanEditor uses divs to create layout, I personaly don't like this,
and prefer tables, but that would not be a problem if it was easy to make 
beanEditor that wraps label and field in a TR,TD...

Another case would be a BeanEditView component that could be switched 
between edit nad view state easily... 

Another case is a BeanEditor generated for a row inside a grid (horizontal, inside TD-s and
without labels)

All this is not possible with edit blocks bound with labels...

As a proposal for connecting label with field I'd suggest PropertyEditContext,
and force editBlock contribution to set clientId of the editor inside it onto PropertyEditContext.
This way a label that is supposed to be for that block can know the clientId, 
an by doing this we can avoid putting label and field together inside the edit block.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message