nice thing about having an interface is that you dont have to do that, you can aggregate on demand and for things like Iterator simply return a compound iterator. but this is more work.i guess your way works too. create a patch and attach it to our
sf.net tracker and one of the core devels will me
Igor Vaynberg wrote:
hrm, so now if you want to join the two what do you do in getMessages()
of the compound impl?
create a new arraylist and merge messages from the other two? do you do
the merged array generation on every call or keep it in a transient field?
i copy the code from Feeedba
hrm, so now if you want to join the two what do you do in getMessages() of the compound impl?create a new arraylist and merge messages from the other two? do you do the merged array generation on every call or keep it in a transient field?
-IgorOn 5/9/06, Ittay Dror <[EMAIL PROTECTED]> wrote:
ok, i
ok, i have it. how do i send it?
i created an AbstractFeedbackMessages, which has 2 abstract methods:
isReadonly() and getMessages(). the rest use them
i'm thinking of maybe change it to ReadonlyFeedbackMessages and
FeedbackMessages which will extend it, and CompoundFeedbackMessages will exten
yep
although i think an abstract base class suffices
will try to do it shortly.
Igor Vaynberg wrote:
maybe you can submit a patch
here is what i would suggest
extract IFeedbackMessages interface from FeedbackMessages and create a
CompoundFeedbackMessages impl, that way you can join the sess
maybe you can submit a patchhere is what i would suggestextract IFeedbackMessages interface from FeedbackMessages and create a CompoundFeedbackMessages impl, that way you can join the session and page messages yourself and still use the same utility methods in FeedbackMessages on the joined collect
Igor Vaynberg wrote:
so you want to use it outside the model?
outside of an IModel context, yes.
but then feedbackpanel.anyMessage(int level) is just
Page.getFeedbackMessages().hasAnyMessage(new
ErrorLevelFeedbackMessage(level)) no?
no, because the model joins the page messages and se
so you want to use it outside the model?but then feedbackpanel.anyMessage(int level) is justPage.getFeedbackMessages().hasAnyMessage(new ErrorLevelFeedbackMessage(level)) no?-Igor
On 5/9/06, Ittay Dror <[EMAIL PROTECTED]> wrote:
it will be too much of a pain, since most issues are because i'm using
it will be too much of a pain, since most issues are because i'm using wicket in an existing application, built on struts.
however, i would appriciate it if you could answer some specific questions.
i'm trying to create my own feedback panel. an issue i encountered is that
FeedbackPanel has th
give us an html snippet of what you want as the end result and tell us where the components are. it is very difficult to talk on such a huge abstraction level.-IgorOn 5/9/06,
Ittay Dror <[EMAIL PROTECTED]> wrote:
Igor Vaynberg wrote:> but what is really a problem then i dont understand? all you wa
Igor Vaynberg wrote:
but what is really a problem then i dont understand? all you want to do
is write out some javascript based on feedback messages? instead of
using a feedbackpanel add a label that writes out the javascript you
want. you can get the messages using Page.getFeedbackMessages()
but what is really a problem then i dont understand? all you want to do is write out some _javascript_ based on feedback messages? instead of using a feedbackpanel add a label that writes out the _javascript_ you want. you can get the messages using
Page.getFeedbackMessages()so something like this
thanx, i did look and you do amazing things with wicket
however, i still want to do it as i first suggested. the reason is that the function i
mentioned is not that simple and has a lot of "gui" logic in it, which i don't
want to move inside my java code.
thanx,
ittay
Eelco Hillenius wrote:
It's explained in the javadocs. And check out the YUI projects from
wicket-stuff and like at the Slider component which has an example of
it. Also, see bottom of
http://chillenious.wordpress.com/2006/05/03/wicket-header-contributions-with-behaviors/
Eelco
On 5/9/06, Ittay Dror <[EMAIL PROTECTED
The templating function is deliberately kept simple. If you want it's
pretty easy to create your own template thingies using e.g. Velocity
or Freemarker. But in this case, it's probably sufficient to just
concatenate the list yourself and do substitution of one variable
placeholder. Thus: in your
ok, i got most of it.
last question: can the template have a way to loop on a list? if not, then how
do you suggest i templatize the messages, so their formatting is kept in the js
file?
thanx,
ittay
Ittay Dror wrote:
Eelco Hillenius wrote:
Or take a look at what's in wicket.extensions.ut
Eelco Hillenius wrote:
Or take a look at what's in wicket.extensions.util.resource and look
at the Slider component in YUI for an example. I think it's cleaner
like that (keep the javascript in seperate files and run some variable
substitution over it).
what do you mean by 'variable substitut
Or take a look at what's in wicket.extensions.util.resource and look
at the Slider component in YUI for an example. I think it's cleaner
like that (keep the javascript in seperate files and run some variable
substitution over it).
Eelco
On 5/9/06, Ittay Dror <[EMAIL PROTECTED]> wrote:
hi,
i ha
hi,
i have a feedback based on javascript. basically, i want to populate a
javascript function's body with all messages, so it will show them one by one.
the final result will be like:
function showFeedback() {
var message;
message += "first feedback\n";
message += "seco
19 matches
Mail list logo