read the models page on the wiki, its a real eye opener
-igor
On Tue, Jul 29, 2008 at 3:04 PM, Edbay <[EMAIL PROTECTED]> wrote:
>
> Worked!!!
> Can you explain how putting the model name in quotes does the trick?
>
>
> mypage extends page{
> private string dept;
>
> public mypage() {
> add(new d
Only problem here is that I populate the dropdown like so:
List depts = new ArrayList ();
depts.add("A");
depts.add("B");
How do I get this list into the dropdown using the suggested code below?
mypage extends page{
private string dept;
public mypage() {
add(new dropdownchoice("id"
Worked!!!
Can you explain how putting the model name in quotes does the trick?
mypage extends page{
private string dept;
public mypage() {
add(new dropdownchoice("id", new propertymodel(this, "dept"));
add(new listview("list", new propertymodel(this, "users"));
}
public list getusers() {
mypage extends page{
private string dept;
public mypage() {
add(new dropdownchoice("id", new propertymodel(this, "dept"));
add(new listview("list", new propertymodel(this, "users"));
}
public list getusers() {
db.queryusers(dept);
}
}
}
-igor
On Tue, Jul 29, 2008 at 1:44 PM, Edbay <[EMAI
I have a listview consisting of user info in a HTML table that I want to
refresh when the user picks a value from a dropdownlist of department codes.
Below is the pseudocode, cobbled together from various postings on the net.
The code runs the first time; however, subsequent requests do not refre
In my case, my ModalWindow contains a Panel.
I have now tried passing my component WebMarkupContainer to the constructor
of the ModalWindow Panel, eg - main page code like:
final WebMarkupContainer listContainer = new
WebMarkupContainer("theContainer");
...
final Moda
Actually the exception that I am getting is :
Attempted to set property value on a null object. Property expression:
dropdown_2_Input Value: >
final DropDownChoice dropdown_2= new DropDownChoice("dropdown_2_Input",
dropDown_List){
public boolean isRequired()
Hi ,
I am trying to add Ajax Behaviour to Radio (in a radioGroup)
RadioGroup has radio_1 and radio_2
radio_1 controls Dropdown_1 (i.e when radio_1 is checked then Dropdown_1 is
enabled and Dropdown_2 is disabled--its all working fine and good)
radio_2 controls Dropdown_2 (i.e when radio_2 is che
It depends how you create your modal window. If it contains a page
(iframe) then passing a component belonging to a main page to a modal
window is not a solution. At least it did not work for me. The work
around was to either open a modal window as a panel and pass the
component as a constructor ar
Hi Gerald,
Don't forget Findbugs is a static code analysis tool, so it can't
figure out everything. To get rid of these (false) warnings you could
for instance disable these specific warnings in FindBugs for wicket
classes that are injected by Spring using FindBugs filters. See
http://findbugs.sou
Component I want to update is in a Panel contained in the main page. So, no
access to this component from the cancel button on the ModalWindow.
Should I be passing the Panel to the ModalWindow in the constructor so I can
access its components?
Steve
damnitjim wrote:
>
> Have you tried
Yes, there was an index.jsp in the root context. I removed this, and it will
now work with
myapp
/*
This seems like a rather obscure problem. Is this documented somewhere or
can it be fixed so others won't have to spend time on it. I spend two
I put some debug statements in Form.java onFormSubmit(), figured out what the
issues was.
Not sure if it needs to be fixed in Wicket code, but here is the
explanation...
The page has a root form and multiple panels each with its own form. One of
the panels has fragment inside which it has a subm
I confirmed that this problem occurs on the trunk, and I filed JIRA
#1762: https://issues.apache.org/jira/browse/WICKET-1762
Thanks, Igor.
- Nate
On Mon, Jul 28, 2008 at 4:54 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> please check with latest trunk, if it still happens open a jira issue
> an
what do you expect the response to be? you have shown no code or
anything for us to go on...
create a jira issue and attach a quickstart to it.
-igor
On Tue, Jul 29, 2008 at 8:53 AM, Ritesh Trivedi
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> No responses yet - anyone pointers on debugging the issue?
Thank you, Marijn. I've actually looked over the model page a few
times in the past. I guess I just don't have a full handle on
models, in general. Using the LoadableDetachableModel did resolve my
problem - thanks! Below are the working code snippets:
public Gbrowse(String id, String po
Hi,
No responses yet - anyone pointers on debugging the issue?
Ritesh Trivedi wrote:
>
> Hi,
>
> I am observing really weird behavior in IE7. I have nested forms on a page
> and a submit button on the outer most form (root form). In FF2 and FF3
> when I click submit button (input type="submit
Have you tried adding target.addComponent() call in the CancelButton submit
?
On Mon, Jul 28, 2008 at 4:19 PM, steve222 <[EMAIL PROTECTED]> wrote:
>
> Hi. Using Wicket 1.3.4.
>
> I have a main page with a panel. Page contains a form for editing a main
> record. Panel contains a DataView contain
Read this page: http://cwiki.apache.org/WICKET/working-with-wicket-models.html
And after that:
public Gbrowse(String id, final String position, final String[] sources) {
super(id);
Label label = new Label("gbrowse", new
LoadableDetachableModel() { @Override Object load() { return
ge
so you decrease the efficiency of your application so that your static
analysis tool stops reporting false positives?
-igor
On Tue, Jul 29, 2008 at 8:10 AM, Gerald Reinhart <[EMAIL PROTECTED]> wrote:
>
> We use Findbugs on our build process, with this
>
> @SpringBean(name = "mySpringBean")
> p
We use Findbugs on our build process, with this
@SpringBean(name = "mySpringBean")
private MyPOJO config;
Findbugs Warning :
Class com...MyPage defines non-transient non-serializable instance
field config Bug type SE_BAD_FIELD (click for details)
In class com...MyPage Field com
I have a custon class extending Panel. The constructor accepts two
parameters which are passed to another method that sets the content
of the label. I have been able to get the initial loading of the
custom Panel to work, but it doesn't seem to be updating via AJAX.
Below is some of the
On Tue, Jul 29, 2008 at 1:11 AM, Gerald Reinhart <[EMAIL PROTECTED]> wrote:
>
>
> jwcarman wrote:
>>
>> Why are you doing this again? @SpringBean already takes care of
>> re-establishing the connection upon deserialization.
>>
>
> Are you sure ?
read the spring page on the wiki
-igor
>
>
> Seba
That's an unpopulated (not localhost) ipv6 address.
- Brill
On 29-Jul-08, at 6:35 AM, Kaspar Fischer wrote:
I try to obtain the client's remote address from the session:
WebClientInfo info = (WebClientInfo) session.getClientInfo();
final String remoteAddress = info.getProperties().getRemote
Hi,
During performance tuning of a data table I noticed that size() of data
provider is invoked twice during one request. This happens when navigating
to a next page. Is this normal behavior? During debugging I noticed that the
onDetach() of AbstractPageableView is invoked an extra time.
Regards
Hey,
so you've got a class CreateUser which is a factory that creates an Edit
Page? The name would be misleading i think. You could have something like
PageFactory, CONTANER extends MarkupContainer, MODEL
extends IModel> (i kept capture (?) just as an example) and throw in a
create method in ther
try:
final ServletWebRequest req = (ServletWebRequest)
RequestCycle.get().getRequest();
final String remoteAddr =
req.getHttpServletRequest().getRemoteAddr();
regards,
Michael
hbf wrote:
>
> I try to obtain the client's remote address from the session:
>
Is your browser running on the same machine as the webserver?
If so, you might want to read this:
http://en.wikipedia.org/wiki/IPv6#Special_addresses
On Tue, Jul 29, 2008 at 1:48 PM, Kaspar Fischer <[EMAIL PROTECTED]> wrote:
> On 29.07.2008, at 12:53, Hoover, William wrote:
>
>> did you try
>> get
On 29.07.2008, at 12:53, Hoover, William wrote:
did you try
getRequestCycleSettings().setGatherExtendedBrowserInfo(true); in your
WebApplication?
William, thanks for your answer. I indeed did not set this in my
application. But if I do, I still obtain the same result.
However, isn't there a c
You don't have to mark your field as transient. The proxy is indeed
serializable (at least the object that it writeReplaces itself with
is) and will re-establish itself upon deserialization.
On Tue, Jul 29, 2008 at 4:11 AM, Gerald Reinhart <[EMAIL PROTECTED]> wrote:
>
>
> jwcarman wrote:
>>
>> Wh
did you try
getRequestCycleSettings().setGatherExtendedBrowserInfo(true); in your
WebApplication?
-Original Message-
From: Kaspar Fischer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2008 6:35 AM
To: users@wicket.apache.org
Subject: How to get the remote address (IP)
I try to obtai
I try to obtain the client's remote address from the session:
WebClientInfo info = (WebClientInfo) session.getClientInfo();
final String remoteAddress = info.getProperties().getRemoteAddress();
This results in "0:0:0:0:0:0:0:1%0". Any idea what might be wrong?
Thanks a lot, Kaspar
-
On Tue, 29 Jul 2008 10:01:41 +0200
"Martijn Dashorst" <[EMAIL PROTECTED]> wrote:
> This is nothing we can do anything about: the browser cancels
> rendering. And with good cause. I've had my share of websites that
> took hold of my browser for too long. especially when they are getting
> ads from
jwcarman wrote:
>
> Why are you doing this again? @SpringBean already takes care of
> re-establishing the connection upon deserialization.
>
Are you sure ?
Sebastiaan van Erk wrote:
>
> The myService field is filled with a proxy to the service which is
> serializable and can look up
> the
This is nothing we can do anything about: the browser cancels
rendering. And with good cause. I've had my share of websites that
took hold of my browser for too long. especially when they are getting
ads from remote servers.
In this case: just ensure that your responses are quick enough.
Martijn
35 matches
Mail list logo