Lance! That worked perfectly :)
Mesa is a happy dev right now.

For those interested in the implementation of the solution:

- Add the mixin to the beaneditor:
<t:beaneditor t:id="someId" object="someObject" t:mixins="hidehidden">

- Add this java class to your mixins namespace:
package yournamespace.mixins;

import java.util.List;

import org.apache.tapestry5.MarkupWriter;
import org.apache.tapestry5.dom.Element;
import org.apache.tapestry5.dom.Node;

public class HideHidden {

        public void afterRender(MarkupWriter writer) {
                Element element = writer.getElement();
                List<Node> children = element.getChildren();
                for (Node rowNode : children) {
                        Element row = (Element)rowNode;
                        List<Node> rowChildren = row.getChildren();
                        if (rowChildren.size() == 1) {
                                Element childElement = 
(Element)rowChildren.get(0);
                                String tag = childElement.getName();
                                String type = childElement.getAttribute("type");
                                if ("input".equals(tag) && 
"hidden".equals(type))
                                        row.addClassName("hidden-input");
                        }
                }
        }

}

- Add this CSS to whatever CSS file that's applicable
div.t-beaneditor-row.hidden-input {
  display: none !important;
}


@trsvax: Ooo. that seems like a bit overkill for this task, but maybe useful
for future tasks. Thank you for answerring.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Hide-remove-div-class-t-beaneditor-row-with-hidden-inputs-in-a-beaneditor-tp5614469p5614810.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to