Re: Use Lablel.for within page class

2014-06-09 Thread Net Dawg
Indeed.  Much Thanks!  @Inject private Messages messages; // used for RDF objects  private String getLabel (String varName)  {        String key = varName + "-label";        if (messages.contains(key)) return messages.get(key);        return TapestryInternalUtils.toUserPresentable(varName);

Re: Use Lablel.for within page class

2014-06-09 Thread Thiago H de Paula Figueiredo
Why don't you just adapt the code I've posted here? @Inject private Messages messages; String componentId = ...; String key = componentId + "-label"; if (messages.contains(key)) return messages.get(key); return TapestryInternalUtils.toUserPresentable(componentId); -- Thiago H. de Paula Figueire

Re: Use Lablel.for within page class

2014-06-09 Thread Net Dawg
Thanks, Thiago...but (how) can one use this in a page class?   Looks like the method defaultLabel is not static, nor does the ComponentDefaultProviderImpl (an internal class) have a constructor, so cannot do either 1.  ComponentDefaultProvider.defaultLabel(Resource side_question_what_would_t

Re: Use Lablel.for within page class

2014-06-09 Thread Thiago H de Paula Figueiredo
On Mon, 09 Jun 2014 05:50:33 -0300, Net Dawg wrote: Has anyone used org.apache.tapestry5.corelib.components.Label within page class? I looked at the code for Lable and see method like beginRender, afterRender...nothing obvious... Label doesn't have any logic for defining the rendered la

Use Lablel.for within page class

2014-06-09 Thread Net Dawg
Has anyone used org.apache.tapestry5.corelib.components.Label within page class?  I looked at the code for Lable and see method like beginRender, afterRender...nothing obvious... Use Case: I am trying to export the data and semantics of tapestry entity class ("model" package) into semantic web