What specifically are you looking for?
I could send you a small portlet, that I use for testing if features
like ajax/dynamic images/etc work on the portal we are using.
What portal are you using? Because the portlet itself (aside from the
web.xml/portlet.xml) is no different then any other
that would be great. i ran jetspeed once ;-)
but i'm more interested in looking at the code
(especially any portlet-specific stuff even if
it's just configuration). i'll take your word for
it that it works.
Thijs wrote:
What specifically are you looking for?
I could send you a small
You can in that case also look in the wicket-examples (as there is a
portlet-configuration in there).
And then from the jetspeed svn check out
/trunk/jetspeed-commons/src/main/java/org/apache/wicket/*
/trunk/jetspeed-commons/src/main/java/org/apache/jetspeed/portlet/*
Those should contain the
cool. thanks!
Thijs wrote:
You can in that case also look in the wicket-examples (as there is a
portlet-configuration in there).
And then from the jetspeed svn check out
/trunk/jetspeed-commons/src/main/java/org/apache/wicket/*
Hi Johan,
AutoAdd can be done in the rendering. They are only there just then.
And they will be removed by wicket after rendering.
Thanks Johan, those 2 lines explain it for me.
Could you add them to the javadoc of MarkupContainer?
Regards,
Erik.
Johan Compagner wrote:
Hmm i am affraid
Hello all,
We have a weird exception in our system.
My team mates created a non standard DataView:
final DataView dataView = new DataView(rows, dataProvider)
{
protected void populateItem(final Item item)
{
final
On 5/13/08, Eyal Golan [EMAIL PROTECTED] wrote:
We have a weird exception in our system.
Not so weird when you read the exception trace. It is a dark art, but
worth the effort of learning.
My team mates created a non standard DataView:
Uh oh... :)
So read this part:
2008-05-13
According to a conversation I had with Johan, only the last shown page
is kept in memory. Earlier versions are written to disk.
When using ajax, the page does not have to be actually written to disk
as you cannot reach the previous state by using the back button. When
using a BookmarkableLink,
First of all, thanks.
(most of) all the above I found out.
I mentioned weird because if that was the problem (Serialization or
invalid constructor), then the Expand link would have never worked. Am I
correct?
BUT, The exception happens only after I go to a BookmarkableLink.
It's not we didn't
Do you mean tomcat logs? No I don't. Some *.ser files appear in the
work\Catalina\localhost\application directory so session is serialized but
isn't restored.
Do I understand correctly that my assumption is correct and the wicket
session must be restored with the tomcat persistent manager? So
Have you tried surrounding that stylesheet link with a wicket:link?
On Tue, May 13, 2008 at 4:25 AM, danielepiras [EMAIL PROTECTED] wrote:
Hi,
I'm developing an application that run on www.myserver.com/myapplication/
In my Index.html page, I include a css:
link rel=stylesheet
Hi,
I tried to create a SecureWebMarkupContainer (contains a DataView, Label,..),
which should be only visible for authorized users. But although the user has
the permission APPL_ADMIN, he cannot see the resultHiddenPanel.
Within the hive I used the wicket id resultHiddenPanel to identify
That actually looks to be correct behavoir.If your URL is
www.myserver.com/myapplication/ , then going to .. takes you to
www.mysesrver.com/myapplication (no trailing slash). Then going to
/css/styles.css takes you to www.myserver.com/myapplication/css/styles.css
Where is your CSS file
Hi,
I was wondering if anyone had any good suggestions or patterns on how to
process a form without using Form.onSubmit and model objects?
The reason I want to do this is that my pages are stateless, and I want to
process the submitted form before all the components on the page are
Hi everybody,
I need really your help.
In a form, from the bdd, I create checkgroups with checkgroupselectors.
This checkgroup works fine with the Check.
But a want to add a Checkbox with thanks to AjaxBehavior can select or
unselect all the checkgroup. But I don't succed.
This is
I've the same behavour describe
http://www.nabble.com/is-it-a-bug--(using-beta-4)-td13284326.html#a13321146
here .
I've solved my problem using:
mountBookmarkablePage(/home, getHomePage());
--
View this message in context:
http://www.nabble.com/Url-resolve...-tp17203548p17207838.html
Ah got it, must have been looking with my wrong glasses on earlier :)
You are using version 1.3.0 that version of SecureContainerCheck only
checks the class of the container, hence the message about missing
permissions for SecureWebMarkupContainer.
permission ${ComponentPermission}
Meaning either use the ComponentSecurityCheck or the snapshot version.
not that stuff about changing the policy file.
Mauirce
On Tue, May 13, 2008 at 3:21 PM, Maurice Marrink [EMAIL PROTECTED] wrote:
Ah got it, must have been looking with my wrong glasses on earlier :)
You are using version
the default config of tomcat already restarts the wicket example sessions
just fine for me
I havent changed 1 thing about that
On Tue, May 13, 2008 at 11:59 AM, ElSe [EMAIL PROTECTED] wrote:
Do you mean tomcat logs? No I don't. Some *.ser files appear in the
i guess Matej wil gladly apply it for you
Except that Matej then has to branch... i what does he like that... :)
johan
On Tue, May 13, 2008 at 11:02 AM, Erik van Oosten [EMAIL PROTECTED]
wrote:
Hello,
Inmethod Grid does not support Wicket 1.4 currently. Apply the attached
patch (created by
Hi boys,
I would like to ask something about wicket generics. I have a warning, that
I don't know, how to solve.
For example in such a line:
IModelString model = new StringResourceModel( ... );
I have a warning, which I cannot
the only thing i can quickly come up with is this
public ExtendLabel(String id, T string)
{
super(id, new ModelT(string));
}
On Tue, May 13, 2008 at 4:55 PM, Stefan Simik [EMAIL PROTECTED]
wrote:
Thx Maurice, your are right. I was using Wicket 1.4M1.
I
Hello Matej, all,
Ah, that is good to hear. The patch makes grid trunk in sync with
wicket-1.4-m1. There might be differences with wicket-1.4 trunk? In any
case, we could not build grid trunk with wicket-1.4-m1 when we retrieved
it (last Friday).
So please Matej, do not apply this patch on your
Uuf, great :) It works ! Thx.
But, is not String something Serializable ?
I cannot understand where was the problem,
but I know, this is more about Java Generics, not about Wicket.
Johan Compagner wrote:
the only thing i can quickly come up with is this
public
I am experiencing a javascript error when closing a ModalWindow that
contains an inmethod-grid control. I am having trouble tracking where the
error originates. Could anyone offer some advice on how to begin
debugging an error with the ModalDialog?
This is a quickstart that shows the
Thx Maurice, your are right. I was using Wicket 1.4M1.
I checked out latest from trunk, and it OK. ;)
So another problematic compiler warning.
For example simple - subtype of Label, which has model type of anything
Serializable.
public class ExtendedLabellt;T extends Serializablegt;
I have a data driver package built around JPA and an Entity Manager
Factory (javax.persistence.EntityManagerFactory). This is currently
used by a couple of standalone applications and works well.
What is the best way to leverage this package in the context of a
Wicket-based web
Have you looked into using Spring's JPA support?
On Tue, May 13, 2008 at 11:29 AM, David Nedrow [EMAIL PROTECTED] wrote:
I have a data driver package built around JPA and an Entity Manager
Factory (javax.persistence.EntityManagerFactory). This is currently used by
a couple of standalone
There is no such thing as setSelected(true). You'll have work with a
model like:
new CheckBox(checkbox, new PropertyModel(yourModel, checkboxSelected));
in that case you can lookup your model like
yourModel.getCheckboxSelected(); (which you could do in your onUpdate())
You can select your
Mhmm, it is meaningful ;) I will know in future, thx
One of the last occuring warning is, when working with
MarkupContainer#add(...) or #addOrReplace(...) method.
Example: I have a simple AjaxPagingNavigator, to which I add a simple
ListView
I have one idea,
the reason of the warnigs is, that parent of AjaxPagingNavigator is
PagingNavigator,
which has parent Panel --- that is not parameterized.
The same problem is with LoopItem, which extends the
WebMarkupContainer --- that is not parameterized.
? could this be the reason ?
well, unless this:
public class LabelT extends WebComponentT
became:
public class Label extends WebComponentString
not saying this is the right thing to do as it might break a lot of code,
but it would be more precise.
Johan Compagner wrote:
the only thing i can quickly come up with
It really depends on your preferences. Either a databinder (using JPA
related classes directly in your UI code) or a DAO/ services based
approach will work.
Eelco
On Tue, May 13, 2008 at 8:29 AM, David Nedrow [EMAIL PROTECTED] wrote:
I have a data driver package built around JPA and an Entity
Hi,
may someone please grant me some karma to manage my own build configuration?
username: funkattack
projects: wicket-contrib-gmap2, wicket-contrib-gmap2-examples
mf
2008/5/5 Martijn Dashorst [EMAIL PROTECTED]:
We have moved our build server to run on teamcity. Our previous
software was
On Tue, May 13, 2008 at 6:48 PM, Andrea Jahn [EMAIL PROTECTED] wrote:
Hi,
I've changed to the 1.3.1-SNAPSHOT version. Therefore I have only replaced
the constructor PolicyFileHiveFactory() by
PolicyFileHiveFactory(ActionFactory).
The result was the same as with version 1.3.0
I must be missing something obvious but I can't spot itI'm using a
DateTextField (Wicket 1.3.2) in my form like so:
Java:
DateTextField expiryDate = new DateTextField(
expiryDate,
new PropertyModel(this, date),
new StyleDateConverter(S-, true));
You could also see
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite , at
some point Iolite will evolve into a little more sophisticated solution
than now but you should get some of the idea anyhow.
http://cwiki.apache.org/WICKET/blog-tutorial.html
David Nedrow wrote:
I have
Assuming EditDiscountCode is a wicket component, given the new
PropertyModel(this, date) You probably want to either use an object
that has a get/setDate (your model object) or add those methods to
your component.
Maurice
On Tue, May 13, 2008 at 9:04 PM, V. Jenks [EMAIL PROTECTED] wrote:
I
cant i have a Label that has a Date as a object?
That is resolved by the converter for display?
johan
On Tue, May 13, 2008 at 6:09 PM, Jonathan Locke [EMAIL PROTECTED]
wrote:
well, unless this:
public class LabelT extends WebComponentT
became:
public class Label extends
please, and will be these classes later generified ?
Or should I make a RFE, or can I help anyway-for example attach a patch ?
I love your work and Wicket, so I do my best, to make it better ;)
Stefan Simik
Johan Compagner wrote:
yes thats the reason
you are calling the method add
i already did the commit just yet..
i did make them all Object because i think people generally dont want to
generify them anyway (use the model object)
On Tue, May 13, 2008 at 9:48 PM, Stefan Simik [EMAIL PROTECTED]
wrote:
please, and will be these classes later generified ?
Or should I
have not thought it through. i was just pointing out another option.
in some sense a label shows a string like a listview shows a list.
that's all.
Johan Compagner wrote:
cant i have a Label that has a Date as a object?
That is resolved by the converter for display?
johan
On
yeah i know just wanted to give an example
But Label == String is not the really the same thing as ListView == List..
Because for a Label getModelObject() doesnt have to be a String (it can be
anything)
but for ListView.getModelObject() does have to be a List..
This is also because our
When you do new PropertyModel(this, expiryDate), this refers to your
page EditDiscountCode which does not have get/setExpiryDate. Instead
of this you should use the model you also pass to the form which
contains a DiscountCode.
Maurice
On Tue, May 13, 2008 at 11:13 PM, V. Jenks [EMAIL PROTECTED]
Johan Compagner wrote:
yes thats the reason
you are calling the method add with a generified component but that
container itself is not generified
i dont like this about generics expecially the onces like this:
add(MarkupContainer? container)
then suddenly a none generified component cant be
Ok, so i did some testing (and in the process found another bug,
unrelated to your issue :)), but i could not reproduce your permission
denied.
Here is my simple setup:
public class ContainerPage2 extends SecureWebPage
{
/**
* Construct.
*/
public
I have one last small problem with this topic which is that I don't see any
particularly elegant place to clear the hint text from this TextField when
the form is submitted.
I've considered adding JavaScript to the Form to implement the onSubmit
handler. I don't like this case because then
this points to current wicket page. So wicket looks for expiryDate in the
wicket page. If you declare expiryDate within wicket page, you won't get
error message. Otherwise, as suggested by Mr Mean, instead of this you
should pass model which has getter/setters for expiryDate.
Sanjeev
Mr Mean
Hi,
Have a question about the reference document on wiki for How to switch to
ssl mode (http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html),
why do SecureWebRequestCodingStrategy and even the custom RequestProcessors
throw away the query string and ?wicket: portion of the URL? Isnt
I'm using Wicket 1.2.
I have a Form that implements IHeaderContributor. My intent is to use
renderHead(Response) to write some JavaScript to the response. The Form is
added to the Page. However, renderHead(...) on my Form is never called.
Am I using this interface incorrectly?
Thanks,
Nate
The reason I want to do this is that my pages are stateless, and I want to
process the submitted form before all the components on the page are
initialised, incase I need to load different data models, or redirect the
request to another page, thus saving unnecessary database calls and
On Tue, May 13, 2008 at 5:28 PM, nate roe [EMAIL PROTECTED] wrote:
I can try that I suppose.
The Javadoc for 1.2 seems to mention Component quite a lot though:
http://wicket.sourceforge.net/apidocs/wicket/markup/html/IHeaderContributor.html
Right. I guess I just lost track of what was
How do I reset the feedback panel from within an event handler? I tried
to set the feedback's model to null, but that throws an error:
org.apache.wicket.WicketRuntimeException: No get method defined for
class: class com.evite.event.model.Event expression: feedback
at
In 1.3 and up (so this won't work for 1.2):
You can use Session.get().getFeedbackMessages().clear() (or call clear
using a filter to just clear specific ones). Component specific
feedback messages are also temporarily stored in the session, so
you'll get those as well.
Btw,
Richard,
I have run into the same issue. I solved it with brute force by
writing a regexp to capture all the inner classes from the Pattern
class and inserting them into my terracotta config's dso section. It
is not the most elegant solution but it will get you past this issue.
Good luck,
Ryan
Ok, I've read over several threads on Wicket+GWT and know that are several
people using the two together.
I've got a nice clean setup that is working all except for one minor detail.
The problem is that Wicket actually does the authentication and I store a
token in the sessionStore, however I
On Tue, May 13, 2008 at 7:10 PM, Ritz123 [EMAIL PROTECTED] wrote:
Hi,
Whats the consistent way of getting HttpServletResponse from the
RequestCycle?
((WebRequestCycle)RequestCycle.get()).getWebResponse().getHttpServletResponse();
Why doesnt the Response class have abstract or default
((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getSession()
should get you the raw http session.
-igor
On Tue, May 13, 2008 at 7:23 PM, Brill Pappin [EMAIL PROTECTED] wrote:
Ok, I've read over several threads on Wicket+GWT and know that are several
people using
Thanks, I'll try that.
What I did while waiting to see what others come up with is dump the servlet
session and see what the key was.
Messy (and error prone as I refactor) but worked in the short term.
Here it is from inside the GWT servlet in case anyone is interested:
private String
laugh
I just now saw your post *just* before this one... Looks like we have a
magic bullet here :)
Thanks for you help!
- Brill Pappin
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 13, 2008 10:53 PM
To: users@wicket.apache.org
Subject: Re: Wicket
I have run into the same issue. I solved it with brute force by
writing a regexp to capture all the inner classes from the Pattern
class and inserting them into my terracotta config's dso section. It
is not the most elegant solution but it will get you past this issue.
Why not just
you can always generate a callback url using urlfor(interface) and
then pass that url to the gwt component. for example of this see how
Link generates a url that results in onLinkClicked() being invoked on
it.
-igor
On Tue, May 13, 2008 at 8:51 PM, Brill Pappin [EMAIL PROTECTED] wrote:
Thanks,
62 matches
Mail list logo