Re: Modifying componentfeedbackpanel output
Here is Quickstart with small customization to feedback message https://github.com/solomax/custom-feedback Is it what you want? On Fri, Feb 23, 2018 at 4:48 AM, Rob Audenaerde wrote: > Can't your front end guy use CSS content to accomplish this? > > On Feb 22, 2018 20:39, "Entropy" wrote: > >> I'm not sure what a quickstart would do to demonstrate what I'm after. >> It's >> not a bug I am trying to work through, I don't even know how to get control >> so I can add the tags. The specific tags I'm adding don't even matter. >> It's static content, but it has to wrap the message. >> >> Just imagine I was trying to wrap the "This field is required" with any >> arbitrary content inside the innermost tags of the feedback panel. Like >> maybe I wanted every message to be "[start]this field is required.[end]". >> Where would I get control to write that? >> >> -- >> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- >> f1842947.html >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modifying componentfeedbackpanel output
Can't your front end guy use CSS content to accomplish this? On Feb 22, 2018 20:39, "Entropy" wrote: > I'm not sure what a quickstart would do to demonstrate what I'm after. > It's > not a bug I am trying to work through, I don't even know how to get control > so I can add the tags. The specific tags I'm adding don't even matter. > It's static content, but it has to wrap the message. > > Just imagine I was trying to wrap the "This field is required" with any > arbitrary content inside the innermost tags of the feedback panel. Like > maybe I wanted every message to be "[start]this field is required.[end]". > Where would I get control to write that? > > -- > Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- > f1842947.html > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Modifying componentfeedbackpanel output
I'm not sure what a quickstart would do to demonstrate what I'm after. It's not a bug I am trying to work through, I don't even know how to get control so I can add the tags. The specific tags I'm adding don't even matter. It's static content, but it has to wrap the message. Just imagine I was trying to wrap the "This field is required" with any arbitrary content inside the innermost tags of the feedback panel. Like maybe I wanted every message to be "[start]this field is required.[end]". Where would I get control to write that? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modifying componentfeedbackpanel output
no tags :((( Maybe you can create quickstart project with 1) desired structure 2) your subclass On Wed, Feb 21, 2018 at 11:01 PM, Entropy wrote: > I'm not sure how to make the markup show right in the post. I'll try > wrapping it in PRE. > > > > > //Error: This field is required. > > > > > Anyway, yes, I am subclassing the component feedback, but it adds the > controls and iterates to produce the messages. If I just modify the > contents of that inner span in the html, of course it overwrites everything. > I would need to get control when the individual message is being worked on, > AND then inject my boilerplate. > > Fortunately, that inner stuff doesn't need to change per message or > anything. Just structure so the message will render how they want. > > -- > Sent from: > http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modifying componentfeedbackpanel output
I'm not sure how to make the markup show right in the post. I'll try wrapping it in PRE. //Error: This field is required. Anyway, yes, I am subclassing the component feedback, but it adds the controls and iterates to produce the messages. If I just modify the contents of that inner span in the html, of course it overwrites everything. I would need to get control when the individual message is being worked on, AND then inject my boilerplate. Fortunately, that inner stuff doesn't need to change per message or anything. Just structure so the message will render how they want. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modifying componentfeedbackpanel output
It is hard to read your markup :(
You can extend FeedbackPanel and provide your own markup
Would it work?
On Wed, Feb 21, 2018 at 10:10 PM, Entropy wrote:
> Ooops, I see nabble is hiding the tags. Trying again with < and >
>
>
>
> aria-hidden="true" class="fas fa-exclamation-triangle" title="Error
> ">Error: This field is
> required.
>
>
>
>
>
>
> --
> Sent from:
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
--
WBR
Maxim aka solomax
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modifying componentfeedbackpanel output
Ooops, I see nabble is hiding the tags. Trying again with < and >
Error: This field is
required.
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Modifying componentfeedbackpanel output
Our front-end guy is asking for us to modify how our component feedback messages render. In particular he wants tags around EACH MESSAGE like so: //Error: This is the message. I added an override for the ComponentFeedbackPanel java and html to make everything spans, and I see onComponentTag as a way to add attributes to the top level span, but I am not sure how to get access to the individual message spans or how to write the extra tags before and after the message. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org