Check out the newest Clickbank report that is sweeping the internet at a 
record pace and...Producing astounding earnings for those that put the methods 
to use.  It's a simple and easy to follow affiliate marketing process that 
has been the result of over five years  of fine-tuning and tweaking... and the 
results are frankly astounding.  In fact, if you've ever wondered what 
strategies the  "Super Affiliates" use to rake in millions of dollars  each 
year, then I'd say it's essential you check  this out...  
http://automatedblogs4cash.ws/guide2cash  Here's what you'll 
discover...  - A simple methodology to make as much as $1,597 per day from 
Clickbank! (you'll see proof)   - How to effortlessly hand-pick red-hot 
Clickbank  products that are guaranteed to sell, over and over  again...   - 
500 Pages Of *Ground-Breaking* Content You Can  Use To Double Or Even Triple 
Your Traffic & Profits  In Record Time!    - A "Strategies Bible" with 
no less than 1000 tips you  /main/java/org/apache/wicket/Component.java 
(original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/Component.java Sun Sep 
14 21:47:45 2008
@@ -1504,6 +1504,7 @@
                markupId = Strings.replaceAll(markupId, "_", "__").toString();
                markupId = markupId.replace('.', '_');
                markupId = markupId.replace('-', '_');
+               markupId = markupId.replace(' ', '_');
 
                return markupId;
        }
@@ -2786,6 +2787,7 @@
                        setMetaData(MARKUP_ID_KEY, null);
                        return;
                }
+
                generatedMarkupId = -1;
                setMetaData(MARKUP_ID_KEY, (String)markupId);
        }

Modified: 
wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupContainerTest.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupContainerTest.java?rev=695343&r1=695342&r2=695343&view=diff
==============================================================================
--- 
wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupContainerTest.java 
(original)
+++ 
wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupContainerTest.java 
Sun Sep 14 21:47:45 2008
@@ -56,4 +56,9 @@
                        assertEquals(Integer.toString(i++), component.getId());
                }
        }
+
+       public void testMarkupId() throws Exception
+       {
+               executeTest(MarkupIdTestPage.class, 
"MarkupIdTestPageExpectedResult.html");
+       }
 }

Added: wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPage.html
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPage.html?rev=695343&view=auto
==============================================================================
--- wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPage.html 
(added)
+++ wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPage.html 
Sun Sep 14 21:47:45 2008
@@ -0,0 +1 @@
+<span wicket:id="foo bar">test</span>
\ No newline at end of file

Propchange: 
wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPage.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPage.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPage.java?rev=695343&view=auto
==============================================================================
--- wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPage.java 
(added)
+++ wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPage.java 
Sun Sep 14 21:47:45 2008
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket;
+
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.basic.Label;
+
+public class MarkupIdTestPage extends WebPage
+{
+
+       public MarkupIdTestPage()
+       {
+               Label label = new Label("foo bar", "test");
+               label.setOutputMarkupId(true);
+               add(label);
+       }
+
+}

Propchange: 
wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPage.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPageExpectedResult.html
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPageExpectedResult.html?rev=695343&view=auto
==============================================================================
--- 
wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPageExpectedResult.html
 (added)
+++ 
wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPageExpectedResult.html
 Sun Sep 14 21:47:45 2008
@@ -0,0 +1 @@
+<span id="foo_bar1" wicket:id="foo bar">test</span>
\ No newline at end of file

Propchange: 
wicket/trunk/wicket/src/test/java/org/apache/wicket/MarkupIdTestPageExpectedResult.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain


Reply via email to