I've got a page with multiple forms. Every time I press a submit
button, the browser starts me at the top of the page again. I then have
to scroll back to where I want to be. Is there a way to set an anchor
name to land on (in the URL) in the onSubmit method so the browser
auto-scrolls to wh
I've got a page with two forms on it. They both use a
CompoundPropertyModel and work perfectly aside from one thing: they
don't update when their model changes.
I've passed a reference of the same POJO instance to each of them.
public class MyPage extends WebPage {
SomePojoClass pojo = new So
e.net/mailarchive/message.php?msg_id=13241596). That
was done for 1.1 and it could be more elegant. But you can use it for
a starter and develop it a bit further. Of course you should use
anchors, if javascript-free solution is required.
2006/3/12, kurt heston <[EMAIL PROTECTED]
<mailto:[EMAI
I figured it out. I was changing the model in a place that was being
executed every time.
False alarm. :)
kurt heston wrote:
Thanks, Arto. I'm using it, works fine.
Arto Arffman wrote:
Well, I have used different approach; with javascript you can scroll
to where you were before hi
Found another problem...was setting Labels with strings and expecting
them to behave as if they'd been passed model objects. :(
Funny, I was already at my silly mistake limit for the day...
kurt heston wrote:
I've got a page with two forms on it. They both use a
CompoundPropert
I figured it out. I was changing the model in a place that was being
executed every time.
False alarm. :)
kurt heston wrote:
Thanks, Arto. I'm using it, works fine.
Arto Arffman wrote:
Well, I have used different approach; with javascript you can scroll
to where you were before hi
Is there a way to choose a new awt color for an ImageButton?
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime develop
Figured it out:
DefaultButtonImageResource r = new
DefaultButtonImageResource("Hello");
r.setColor(Color.blue);
add(new ImageButton("updateButton",r) {
kurt heston wrote:
Is there a way to choose a new awt colo
Dave,
Wicket has built-in hooks to facilitate its use in large, multi-server
configurations where load balancing and other scalability considerations
are required. You are on pretty solid ground.
I cannot speak from experience about how Wicket handles more than 10 or
20 concurrent connectio
I've got some legacy PDFs laying around that utilize the HTTP submit
functionality available when using Acrobat fillable forms. The servlet
I have answering these Acrobat requests saves off the field names and
values submitted in a 3 column table (rec id, field name, value). We
change the for
ement();
System.out.println(parm + " : " + arg0.getParameterValues(parm)[0]);
}
arg1.sendRedirect("/feeple/");
}
kurt heston wrote:
I've got some legacy PDFs laying around that utilize the HTTP submit
functionality available when using Acrobat fillable forms.
p.
Timo Stamm wrote:
kurt heston schrieb:
I've got some legacy PDFs laying around that utilize the HTTP submit
functionality available when using Acrobat fillable forms. The
servlet I have answering these Acrobat requests saves off the field
names and values submitted in a 3 column table (r
>>
>>
>>
>>
>>
>>> So if for example you post to a bookmarkable page then
PageParameters
>> should
>>> be filled with everything.
>>>
>>> johan
>>>
>>> On 4/13/06, T
When I click on the images I'm producing with ImageButton, nothing
happens in Internet Explorer. It works fine in FireFox.
This produces my button image (I wanted a color other than Orange):
protected static ImageButton getButton(String buttonName, String label) {
DefaultButtonImageResour
;printLink", new PrintPage());
printLink.add(new Image("print", getButton("Print")));
printLink.setPopupSettings(popupSettings);
add(printLink);
I think I can get rid of the blue box that shows up around my button
with CSS, too. Working on that...
kurt heston wr
Piece o' cake:
.linkButton {
border: none;
}
Something really slick would be a button whose text label I could define
within my HTML. No time for that right this minute...perhaps later.
kurt heston wrote:
Ok, I've got something that works:
protected stati
The code was working fine on my development machine. However, when I
moved it to production (a much faster box), the buttons I'm generating
all showed up as broken links. Just shooting from the hip, I'm guessing
something isn't flushing its buffer.
Here's the HTML:
Here's the Java:
add(n
trace? you are
not giving us much to go on.
a common problem on prod servers and image buttons is that vm is
started w/out awt support.
try starting the vm like this: java - Djava.awt.headless=true ...
-Igor
On 4/18/06, *kurt heston* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> w
=78:toppanel:contractList:contractListImg&interface=IResourceListener"
cannot be displayed, because it contains errors.
Are you running the browser on the same box or on another machine? If
your browser is on another box, then the reference to localhost is
quite strange.
Martijn
On 4/19/06, *kurt heston* <
Is anyone using button shapes as hyperlinks like I am? I was coloring a
bit outside the lines when I wrote the code you see below. Tell me if
you are doing it differently. Maybe doing it another way will rid me of
my broken link problem.
kurt heston wrote:
That particular text message came
When I'm stepping through the code, the problem goes away. Still looking...
Johan Compagner wrote:
do debug when you just ask for the link in the browser what you
excactly are sending to the browser.
isn't it by accident 0 bytes?
johan
On 4/19/06, * kurt heston* <[EMAIL PROTEC
I can see that Wicket is rendering my buttons and placing them into
%CATALINA_HOME%\temp. If I rename them to .gif and open them in a
viewer, there they are.
Where should I look for the code that reads the tmp file from the disk
and sends it to the browser?
kurt heston wrote:
When I
I have the asterisk.
I'm in the process of setting up Maven so I can compile wicket. I don't
presently use it, this is an excuse to play. :)
Igor Vaynberg wrote:
make sure your servlet mapping has a /* at the end, like /app/* not
just /app
-Igor
On 4/30/06, *kurt heston
Looks like my problem is on line 134 of DynamicImageResource:
writer.setOutput(ImageIO.createImageOutputStream(out));
writer.write(image);
after these, "out" is empty. Not sure what the cause is yet...stay tuned.
kurt heston wrote:
I have the asterisk.
I'm in the proces
, everything is fine.
kurt heston wrote:
Looks like my problem is on line 134 of DynamicImageResource:
writer.setOutput(ImageIO.createImageOutputStream(out));
writer.write(image);
after these, "out" is empty. Not sure what the cause is yet...stay
tuned.
k
I'm trying to create a field that allows filling in of a credit card
expiration date using 1.2. What did I miss?
Code:
TextField exp = new RequiredTextField("expiration");
DatePicker picker = new DatePicker("expirationDatePicker", exp);
DateConverter conv = new DateConverter()
; dateformat is generated based on that
>
> That dateformatter should also be used by the textfield itself to
> handle the formatting both ways.
> So override the getConverter() of the exp textfield and return als
> your converter (that has to work 2 ways then!)
>
> joha
All I did was switch from wicket-1.2-rc3.jar to wicket-1.2.2.jar and my
SignIn page, adapted from Juergen's code, stopped working. The fields
are always an empty string.
What did I miss in the release notes?
-
Take Survey
Am I being too vague here to get an answer? Do I need to post my code?
kurt heston wrote:
> All I did was switch from wicket-1.2-rc3.jar to wicket-1.2.2.jar and my
> SignIn page, adapted from Juergen's code, stopped working. The fields
> are always an empty string.
>
> Wh
@param password
*The password
* @return True if signin was successful
*/
public abstract boolean signIn(final String username, final String
password);
}
//-
Igor Vaynberg wrote:
> yes you are too vague,
while.
>
> -Igor
>
>
> On 10/2/06, * kurt heston* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Am I being too vague here to get an answer? Do I need to post my
> code?
>
> kurt heston wrote:
> > All I did
Is this normal behavior or a good place to start chasing down my issue:
"java.lang.NoSuchFieldException: username"
kurt heston wrote:
> Something changed about how I'm supposed to override WebRequestCycle.
> This is where my values are disappearing. Reading up on it now
The attached code works fine with 1.2RC3, does not work with 1.2.2. I'm
pretty sure the problem lies in with MyApplication or RequestCycle just
not sure where.
package test.base;
import java.awt.Color;
import test.auth.UserSession;
import wicket.Resource;
import wicket.markup.html.WebPage;
impor
Has anyone been able to download v1.2.3?
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Applicat
acktrace of that error?
>
> johan
>
>
> On 10/23/06, *kurt heston* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Is this normal behavior or a good place to start chasing down my
> issue:
>
> "java.lang.NoSuchFieldExcepti
Only from Australia at last check.
Martijn Dashorst wrote:
> Does this mean that downloading of 1.2.3 now works?
>
> Martijn
>
>
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done qu
Server in Auastralia works.
Martijn Dashorst wrote:
> Probably the mirrors need to get the new files... It is strange, as
> I've uploaded the distributions yesterday.
>
> Martijn
>
> On 10/30/06, kurt heston <[EMAIL PROTECTED]> wrote:
>
>> H
I've attached a test case I wrote. It works fine until I upgrade the jars.
kurt heston wrote:
None of my Forms work after upgrading from 1.2.rc3. Can anyone give
me a clue what's wrong? No error is thrown, it's just that NONE of my
form field values are anything other than
Simply can't figure this one out. Tried again today to use v1.2.3 and
came up short. Opened JIRA issue *WICKET-198
<https://issues.apache.org/jira/browse/WICKET-198>
*
kurt heston wrote:
> This war replicates the problem. Use it with RC3 jars, it will work
> fine. Howev
I'm trying to create a filter that allows the user to enter a date on
which to filter. It works fine when a valid date string is input.
However, invalid dates generate a conversion exception.
Do I need to create a brand new class that overrides
FilteredPropertyColumn to get this to work?
---
doing it another way. Suggestions?
Johan Compagner wrote:
> if not make a jira issue:
>
> http://issues.apache.org/jira/browse/WICKET
>
> and point us to the jira number.
>
> johan
>
>
> On 10/31/06, *kurt heston* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>&g
t;> Issue Type: Bug
>> Components: wicket
>>Affects Versions: 1.2.3
>> Environment: Java 1.4.2, Tomcat 5.0
>>Reporter: Kurt Heston
>> Attachments: rc3Test.war
>>
>>
>> None of my Forms work after upgrading
42 matches
Mail list logo