Split Spry.Data and Spry.Data.Region from SpryData.js?

I don't like Spry.Data.Region or anything like Spry.*.Region because it make hard to customize using javascript.
But Spry.Data with Observer / Notify feature is great one. In fact, using SpryData.js, I can write my own "render html object" easier.
SrpyData.js is big (127KB) even when compressed, it is still 65KB. That why, needed split Spry.Data and Spry.Data.Region from SpryData.js so who want to use Spry.Data only like me will get smaller trafic.
I've tried remove all Spry.Data.Region content in SpryData.js. Surprise, some in Spry.Data call to Spry.Data.Region >>> Design have problem.
Anyone can help splitting them?

Found this in the archives:
<div spry:if="{ds_RowCount} == 0" class="trigger" style="display:none"></div>
Basically a hack to point the tooltip to a hidden div so no errors are thrown.

Similar Messages

  • Referencing and toggling mulitple regions from side bar.

    This is on APEX 32 10G XE.
    My page looks like this
    <--------------Sidebar Region------------>     <-------------------------------------------- A chart Region from link1--------------------------------->
    |   _link1_                              |      |                                                                                                      |
    |   _link2_                              |      |                                                                                                      |
    |   _link3_                              |      |                                                                                                      |   
    |   _link4_                              |      |                                                                                                      |
    <-------------Sidebar Region------------>      <-------------------------------------------------------------------------------------------------------->My requirement is, the region on the right side is the chart region which will dynamically change based on the links selected in the sidebar.
    To explain in a more elaborative way, if user clicks link1 from above, a chart will be displayed as a result of clicking link1, then, if user clicks link2, another chart should display as a result of clicking link2. And when that happens, previous region contents from link1 needs to disappear and chart region from link2 needs to show up as a result.
    In summary, how can I dynamically hide/show multiple regions trigged by clicks on the links from side bar region on the left.
    Any input?
    Thank you much for reading this post.
    Rich
    Edited by: Rich V on Mar 24, 2010 2:42 PM

    No Problem Rich,
    I'll try my best to explain it, if you can't quite get it work I see if i can sort out some screen shots,
    1) Create New Region:
    -->Go to your Page Definition and Create a new HTML region
    -->Give it a Title and select No Template from the Region Template select list
    -->Hit Create Region
    2) Create a Hidden Page item:
    -->From Page Definition Create New Page Item
    -->Choose Hidden Item and Hidden and Protected for the item type
    -->Give it a Name (i called mine P3_DISP_REG) and select a region
    -->Accept defaults for the Label as this won't be displayed
    -->Give the item a default value of 1
    -->Hit Create Item
    2) Add conditional display to the region:
    -->From page definition edit your first region
    -->In the Conditional Display Section --> Choose Value of Item in Expression 1 = Expression 2
    +(this informs Apex to only the display the region if the value of the page item meets the value in expression 2)+
    -->Type the name of the item you created in step 2 into Expression 1 e.g. P3_DISP_REG
    -->In Expression 2 type the value of *1*
    Repeat this for all regions increasing the value of expression 2 each time
    3) Create list to change Item value:
    -->Go to Shared Components and Select Create list
    -->Give the list a name and accept rest of defaults +(this will take you to the list entries page)+
    ---->Hit Create List entry
    -->Give the list entry a name +(i.e Corresponding Region Name )+
    ---->In the Target Section type in your page number
    -->Then in Set these items Text field type (or select) your page item created in step 2 +(P3_DISP_REG)+
    -->Then in With these Values type 1
    this sets the value of the page item when the link is selected
    Create the list entries for all regions on your page and type the corresponding value you typed in step 3 to display the correct region
    4) Add the list to your page and your should be done!
    Hope it helps
    Mark
    Don't forget to flag answers as helpful or correct as this can help others in the future

  • HT3819 I am a teacher. I have an iPhone and iPad for personal use.  I also have an iPod and now an iPad for school use.  Would it be best for me to use home sharing on all 4 devices, or should I split my account and have separate accounts for home & schoo

    My first i device was an iPod touch that I was given for use in my classroom.  Then I got an iPhone for personal use.  Both items are listed under the same username and account.  Since then I now have 2 iPads, one for home and one for work.  I have many apps that are only for work like Math Zombie and Science Facts, and many that are for personal use, like Facebook and YouVersion.  I know that I can synch each device and tell iTunes which apps go on which device.  However at home I use a Mac, and my school computer is a PC.  I am wondering if I should split my account and keep personal separate from work.  Then I can synch all school related devices on the PC and home devices on the Mac.  I realize that there maybe the rare occaision that I might want one app for both accounts.  That's the chance I take on splitting my account.  Are there ay benefits one way or the other?

    Will you be the person paying for apps on both accounts?
    Are you the only person that will use both of the iPads?
    Is there a chance students will be using the work iPad and if so, do you want personal data stored on it?
    If you're the only one using it I'd keep the same account just to have the flexibility of having access to everything on all devices. If your students will be using it or if the school is paying for the school apps I'd keep separate accounts. It all depends on how often you will use school apps from home, and home apps at school. Just some things to consider...

  • Help with Spry Detail Regions, XML Data Sets, for IMG gallery

    Hello,
    I'm working on a site for a friend of mine, a photo gallery. You can see the gallery here, it's a temporary one I'm working on
    http://www.emiliajozefa.com/a_index.html
    Here are some important parts of my code:
    //initially load these data sets. the function will be called by the links to update components later<script type="text/javascript">
         var intNumPhoto = 0;
         dsGallery = new Spry.Data.XMLDataSet("photofile.xml", "galleries/ride/photo");
         dsNav = new Spry.Data.XMLDataSet("photofile.xml", "galleries/ride");
         function updateSpryComponents(galleryDir){
              alert("updating spry components for " + galleryDir);
              intNumPhoto = 0;
              dsGallery = Spry.Data.XMLDataSet("photofile.xml", "galleries/" + galleryDir + "/photo");
              dsNav = Spry.Data.XMLDataSet("photofile.xml", "galleries/" + galleryDir);
              dsGallery.setCurrentRow(intNumPhoto);
              //document.getElementById('nav').innerHTML='<H1>'+enlarge.inp.value+'</H1>';
              document.getElementById('nav').innerHTML=
              "<span spry:detailregion = 'dsGallery'>
             <a href = 'javascript:' onclick = 'if(intNumPhoto > 0){intNumPhoto -= 1}; dsGallery.setCurrentRow(intNumPhoto);'>&lt;</a> {@id} / </span>
             <span spry:detailregion = 'dsNav'>{@numPhotos}
             <a href = 'javascript:' onclick = 'if(intNumPhoto < ({@numPhotos} - 1)){intNumPhoto += 1; }; dsGallery.setCurrentRow(intNumPhoto);'>&gt;</a>
             </span>";
    </script> <--- later ----><!-- SIDEBAR NAV. When link i clicked, set DataSet to the location of the new gallery -->
         <div id = "sideBarNav">
             <a href = "javascript:" onclick ='updateSpryComponents('ride');">Tannersville</a>
                <br />
              <a href = "javascript:" onclick = "updateSpryComponents('dive');">Dive</a>
            <br />
              <a href = "javascript:" onclick = "updateSpryComponents('poland');">Poland</a>
            <br />
              <a href = "javascript:" onclick = "updateSpryComponents('alaska');">Alaska</a>
        </div>
    </div>
    <div id = "content2">
         <!-- PHOTO CONTAINER I think I somehow need to refresh this section of the code to reload new data-->
         <div id = "fotoContainer" spry:detailregion="dsGallery"><img src = "photos/{@path}" width = "{@width}" height = "{@height}"/></div>
         <!-- IMAGE NAVIGATION -->
         <div id = "nav">       
             <span spry:detailregion = "dsGallery" id = "galSpan">
             <a href = "javascript:" onclick = "if(intNumPhoto > 0){intNumPhoto -= 1}; dsGallery.setCurrentRow(intNumPhoto);">&lt;</a> {@id} / </span>
             <span spry:detailregion = "dsNav" id = "navSpan">{@numPhotos}
             <a href = "javascript:" onclick = "if(intNumPhoto < ({@numPhotos} - 1)){intNumPhoto += 1; }; dsGallery.setCurrentRow(intNumPhoto);">&gt;</a>
             </span>
         </div>
    You could view source there to get the code. Here is what I believe is my problem
    I'm trying to automate the site so that when you click on one of the links on the left, without refreshing the page, the paths to the galleries xml file changes, and the spry Detail Regions (1 for the images, 1 for the navigation - left and right arrows). I think the problem is that once the link changes the set and calls my updateSpryComponenets() function, the detail regions need to be refreshed. I'm currently trying to solve this by dynamically rewriting the HTML thru .innterHTML, everytime I call updateSpryComponents().There may also be a problem in the Javascript function updateSpryControllers because if I put the alert after the spry calls, I never get the alert
    Thanks in advance for any help!

    Update:
    Ok, the first query on the Recent tab doesnt work for me because it wont show unless its already voted, and since these are supposed to be new blurts, that kind of breaks the whole site:
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC";
    So I replaced it with what I originally had.
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt ORDER BY Blurt.`Date` DESC";
    But this doesn't provide me with the initial average rating:(

  • Has anyone implemented CKEditor in a Spry Data Region?

    I have been trying to implement an HTML editor in a Spry Data Region without success.
    CKEditor is a follow up from FCKEditor and is supposed to slot into Ajax applications.
    The website is here: http://docs.fckeditor.net/CKEditor_3.x/Developers_Guide.
    Any help will be greatly appreciated.
    Ben

    Just make sure you call the
    CKEDITOR.replace('editor1'); // editor1 being the id of your text area
    everytime the region gets updated. The best way to do this is add a Spry region observer, that calls that line of code during the onPostUpdate observer.
    Read more about the observers here:
    http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html

  • Defining a spry data set from a url variable

    I am developing a family web site that, among other things, uses a single 'recipe' page to display recipes from different xml files as called by a url variable (e.g. ?xmlFile="{url}"&recipeName="{name}") from a summary page.  I can get the recipe name to reproduce using a $_GET php function, but I cannot establish the data set that way.  How can I define the data set from the incoming URL variable?  The necessary files are:
    The starting point from which I send the selected URL variable (use the scampi recipe)  http://ebogott.com/recipeBox.php.
    The file that is generated is http://ebogott.com/recipe.php?XMLfile=GrilledScampiOnAngelHair.xml&recipeName=Grilled%20Sh rimp%20Scampi%20on%20Angel%20Hair%20Pasta
    This methodology will allow me a number of cascading selections.  I know this is not unique.  I just haven't figured it out.
    don Carlos de la Playa

    don Carlos,
    The following shows the strength of the Spry framework. All very easy and simple.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var dsRecipes = new Spry.Data.XMLDataSet("recipes/recipes.xml", "recipes/recipe");
    var dsIngredients = new Spry.Data.XMLDataSet("recipes/{dsRecipes::url}", "recipe/ingredients/ingredient");
    var dsProcess = new Spry.Data.XMLDataSet("recipes/poultrySoup.xml", "recipe/process/element");
    //-->
    </script>
    </head>
    <body>
    <div class="MasterDetail">
      <div spry:region="dsRecipes" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="dsRecipes" spry:setrow="dsRecipes" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{name}</div>
      </div>
      <div spry:detailregion="dsRecipes dsIngredients dsProcess" class="DetailContainer">
        <div class="DetailColumn">{@genre}</div>
        <div class="DetailColumn">{@serves}</div>
        <div class="DetailColumn">{@time}</div>
        <div spry:repeat="dsIngredients">
          <div class="DetailColumn">{dsIngredients::qty}</div>
          <div class="DetailColumn">{dsIngredients::measure}</div>
          <div class="DetailColumn">{dsIngredients::item}</div>
        </div>
        <div spry:repeat="dsProcess">
          <div class="DetailColumn">{dsProcess::element}</div>
        </div>
      </div>
      <br style="clear:both" />
    </div>
    </body>
    </html>
    You will have to give a bit of style to the detail region.
    I hope this helps.
    Ben

  • Caught exception in Spry.Data.Region.

    Hi there every one...
    I getting this error and i cant get around it can anyone help
    me, thanks in advanced.....
    code:
    <div spry:region="pvprefix" class="SpryHiddenRegion">
    <a href="javascript:pvprefix.previousPage();"
    spry:if="{ds_PageNumber} != '1'"><-- <? echo
    ucfirst($traducoes['_anterior']);?></a>   
    <a href="javascript:pvprefix.nextPage();"
    spry:if="{ds_PageNumber} != {ds_PageCount}"><? echo
    ucfirst($traducoes['_proximo']);?> --></a>
    </div>
    error:
    Caught exception in Spry.Data.Region.prototype.processTokens
    while evaluating: != '1' Exception:SyntaxError: syntax error
    Caught exception in Spry.Data.Region.prototype.processTokens
    while evaluating: != Exception:SyntaxError: syntax error
    i have a similer code above and it works fine:
    code:
    <div spry:region="pvprefix" class="SpryHiddenRegion">
    <p spry:if="{ds_UnfilteredRowCount} &gt; 0"><?
    echo ucfirst($traducoes['_pagina']);?> {ds_PageNumber} <?
    echo ucfirst($traducoes['_de']);?> {ds_PageCount} - <? echo
    ucfirst($traducoes['_items']);?> {ds_PageFirstItemNumber} -
    {ds_PageLastItemNumber} <? echo ucfirst($traducoes['_de']);?>
    {ds_UnfilteredRowCount}</p>
    <p spry:if="{ds_UnfilteredRowCount} == 0"><? echo
    ucfirst($traducoes['_erro_destinos']);?></p>
    </div>

    I think this is happening when there is no data to page. In
    that case your {ds_PageNumber} is not defined so your spry:if
    attribute probabaly ends up looking like this:
    spry:if="!= '1'"
    You can either quote your {ds_PageNumber} which you should
    probably do cause your '1' is quoted:
    spry:if="'{ds_PageNumber}' != '1'
    or only execute that markup if you have rows of data:
    <div spry:region="pvprefix"
    spry:if="{ds_UnfilteredRowCount} > 0">
    </div>
    --== Kin ==--

  • Target Spry RowID on page with Multiple data sets from another page

    Hi all,
    I am trying to target a specific data item, on a page with
    multiple data sets, from a link on another page. (I also have to
    pass the link through Flash, but lets start with the simple
    part...)
    You can take a look at the site in progress here:
    http://www.3andband.com/TestSite/iframeTest3.html
    From the Home page I want to link to specific news or concert
    items on the News page
    I have been trying to get SpryURLUtils to do it but I can't
    seem to get it working.
    Any help would be greatly appreciated.
    Thanks!
    Ben

    did u try if it even passes the row value?? with a simple
    alert? alert(params.row)
    Also maby u need to reorder the scripts to this;
    <script src="../SpryAssets/SpryURLUtils.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryCollapsiblePanel.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryEffects.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryAccordion.js"
    type="text/javascript"></script>
    and your js script
    var params = Spry.Utils.getLocationParamsAsObject();
    var dsConcerts = new
    Spry.Data.XMLDataSet("includes/concerts.xml", "Concerts/concert");
    dsConcerts.setColumnType("image", "image");
    var dsNews = new Spry.Data.XMLDataSet("includes/news.xml",
    "News/item");
    //Set an observer so that when the data is loaded, we update
    the current row to the url param value
    dsNews.addObserver({ onPostLoad: function(ds, type) {
    dsNews.setCurrentRow(params.row); }
    function MM_effectBlind(targetElement, duration, from, to,
    toggle)
    Spry.Effect.DoBlind(targetElement, {duration: duration,
    from: from, to: to, toggle: toggle});
    So url params get loaded before the data

  • Split month, date and year

    How to split month,date and year from date field ? is there any standard function module.

    You can do this.
    data: year(4) type c,
          month(2) type c,
          day(2) type c.
    year = sy-datum(4).
    month = sy-datum+4(2).
    day = sy-datum+6(2).
    write:/ year.
    write:/ month.
    write:/ day.
    Regards,
    Rich Heilman

  • Ho to automate data extraction from KSB1 and GR55 transaction code

    Hi All,
    Can you please let me know if their is a way to automate data extraction from transaction code KSB1 and GR55. I have to extract data from 5 different servers .i.e different server for each region and again i have different controlling area codes in each region. Following are the details which i use to extract the data. It takes too long for me to extract data from all this regions and controlling area codes using my parameters. It's very time consuming so i want to automate this process. I am end user so i don't have any admin rights. Please let me know any workable solution asap.
    Production areas : PNA for Americas, PSI for Asia Pacific and Japan, PGY for Germany, PIT for Italy and PEU for Europe
    Controlling area codes in PNA : CAR for Argentina, CBR for Brazil, CMX for Mexico and CUS for USA. Same way there so may other controlling area codes for all other production areas
    Period From 1 to 12
    Fiscal Year : 2009
    Cost Centre Group : G_6284
    Cost Element Group : 1742000000
    Please let me know in case you need more details.

    Hi,
    Here follows a translation from German:
    SAP GUI (client) for Windows enable
    Start SAP Logon and log on to the SAP server.
    Click the button on the toolbar to adjust for Local Layout.
    Click Options and then click the tab for the scripting.
    Select the Enable checkbox for scripting.
    Disable the checkbox for Notify when a script is assigned to an active GUI and the checkbox for Notify when a script opens a connection.
    Save the settings and restart the SAP GUI again.
    SAP-server enable
    With the following procedure, you can enable scripting by the SAP client temporarily. The specified value in this way is lost when you restart the server.
    Start SAP Logon and log on to the SAP server.
    Start a transaction RZ11.
    Enter sapgui / user_scripting in the window to manage the profile parameters.
    Click on ads.
    Click in the window to display the profile parameter attributes to change value.
    Enter TRUE in the field for a new value.
    Save the settings and log out from the SAP GUI.
    Quit the SAP Logon.
    Note:
    If the server administrator edited the application server profile of the SAP system to sapgui / user_scripting = TRUE to include the scripting is enabled when you restart the server by default.
    SAP provides an option to change the network connection mode at any server. The following two connection modes are available: high-speed connection (LAN) and connecting with a slow speed. Although Functional Tester works in both modes, the high-speed connection with a recorded script is played only in this mode. This also applies to other modes. They must reflect your SAP script in the same network connection mode, with which the script was recorded. It is recommended that the mode of "high-speed connection, as it offers a greater number of valid recognition properties.
    Regards,
    ScriptMan
    Edited by: ScriptMan on Apr 13, 2010 12:32 PM

  • Splitting of catalogue and data tables in their core BO management database

    Hi All,
    Could you please suggest your ideas on the below recommendation suggested by our DBA's:-
    It is recommendable to split catalogue tables from data table and other data objects (e.g. indexes) using storage.
    splitting of catalogue and data tables in their core BO management database
    Is it a recommendable solution to splitting of catalogue and data tables in their core BO management database?
    Many Thanks,
    Madhu
    Edited by: Madhu P on Jun 11, 2008 11:56 AM

    Dear Madhu,
    it's really safe to separate the BO management tables ( the repository) from the tables containing the data.
    We went a step further and create a BO database (dedicated server) containing only the repository.
    Because the BO database may provide meta data form different universes pointing to different databases containing the data we have easier administration and some performance advantages
    with this separation.
    bye
    yk

  • Inherit from data region bpf

    Hi all,
    We are using inherit from data region for the dimensions (entity & time) in our business process flows.
    For some users, when they access to the bpf, the dimension entity isn't inherit.
    This behaviour ocurrs randomly, ¿do you know how can be solve?
    Thanks in advance.
    Regards,
    Juan

    You might try to copy the package that you are requesting in the BPF as a back-up.  Then in the package you have connected to the BPF, comment out the SELECTION PROCESS text in the Advanced area of the SSIS package.  Then test the process and review the log to see if the current view or assigned view is passed as a parameter.  If not, then you may have to use a specific package, that has a broader scope defined in the package details or Script logic file itself.
    That would be my first step.

  • BPC 75 NW - BPF driver dimension key and description in Data region

    Hello All,
    In our BPF templates we have used Costctr as our driver dimenion. When we go to My activities to view BPF instances- we only see the Costctr Description in the data region which is the default.  In our example- we have muliple cost centers globally with the same description.. so having the key displayed in the step region is critical. Is there a way to specify the key as well?
    We are on BPC 75 NW SP07 patch 3.
    Any help is appreciated.
    Thanks,
    Shai

    Hi,
    "Inherit from Data Region" means - when you open the BPF, you need to specify members for few of the dimensions. These members can be used by specifying "inherit from data region".
    For example, if, while opening the BPF, you enter USA for Entity and 2009.Total for Time. If "inherit from data region" is specified for entity dimension, then it will take USA, irrespective of the current view and the fact that the user is owner of some other dimension.
    In this case, either you can take it from CV or you can specify the member explicitly while designing the BPF. However, it will not serve your purpose.
    When you acces read access to the user for some entity, the user can still view the data. However, he wont be able to send data. So, restricting the view access is not possible in this case.
    Hoep this helps.

  • How to get Date value from database and display them in a drop down list?

    Hello.
    In my Customers table, I have a column with Date data type. I want to create a form in JSP, where visitors can filter Customers list by year and month.
    All I know is this piece of SQL that is convert the date to the dd-mm-yyyy format:
    SELECT TO_CHAR(reg_date,'dd-mm-yyyy') from CustomersAny ideas of how this filtering possible? In my effort not to sound like a newbie wanting to be spoonfed, you can provide me link to external notes and resources, I'll really appreciate it.
    Thanks,
    Rightbrainer.

    Hi
    What part is your biggest problem?? I am not experienced in getting data out of a database, but the way to get a variable amount of data to show in a drop down menu, i have just messed around with for some time and heres how i solved it... In my app, what i needed was, a initial empty drop down list, and then using input from a text-field, users could add elements to a Vector that was passed to a JComboBox. Heres how.
    package jcombobox;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Vector;
    import javax.swing.*;
    public class Main extends JApplet implements ActionListener {
        private Vector<SomeClass> list = new Vector<SomeClass>();
        private JComboBox dropDownList = new JComboBox(list);
        private JButton addButton = new JButton("add");
        private JButton remove = new JButton("remove");
        private JTextField input = new JTextField(10);
        private JPanel buttons = new JPanel();
        public Main() {
            addButton.addActionListener(this);
            remove.addActionListener(this);
            input.addActionListener(this);
            buttons.setLayout(new FlowLayout());
            buttons.add(addButton);
            buttons.add(remove);
            add(dropDownList, "North");
            add(input, "Center");
            add(buttons, "South");
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == addButton) {
                list.addElement(new SomeClass(input.getText()));
                input.setText("");
            } else if (e.getSource() == remove) {
                int selected = dropDownList.getSelectedIndex();
                dropDownList.removeItemAt(selected);
        public void init(String[] args) {
            setSize(400,300);
            getContentPane().setLayout(new BorderLayout());
            getContentPane().add(new Main());
    }And that "SomeClass" is show here
    package jcombobox;
    public class SomeClass {
        private String text;
        public SomeClass(String input) {
            text = input;
        public String toString() {
            return text;
    }One of the things i struggled a lot with was to get the dropdown menu to show some usefull result. If the list just contains class references it will show the memory code that points to that class. Thats where the toString cones in handy. But it took me some time to figure that one out, a laugh here is welcome as it should have been obvious :-)
    When the app is as simple as this one, using a <String> vector would have been easier, but this is just to demonstrate how to place classes in a vector and get some usefull info out of it, hope this answered some of your question :-)
    The layout might have been easier to write, than using the toppanel created by the JApplet and then the two additional JPanels, but it was just a small app brewed together in 15 minutes. Please comments on my faults, so that i can learn of it.
    If you need any of the code specified more, please let me know. Ill be glad to,

  • Iphone 4s-when wifi is off and I am away from my home connection can I receive and send texts and text messages?  I want to keep my wifi off to limit data (email etc) to when I want to check it.  Cellular is roaming"voice only" it says.Can I get texts?

    When my wifi is off and I'm away from my home connection - it shows wifi off (unless I turn it on to check my email etc.) - and in the settings cellular it shows "voice only". Will I be able to receive and send texts in those settings?  Or check voicemail.  I had wanted to keep my email from coming in all the time and only want to check it periodically - so I turn ON my wifi when I want to check my email.  But when my wifi was off away from home- I hadn't seemed to be getting my texts.  So- do I need to keep wifi roaming connected when away from home to receive and send my texts in real time.  (which is what I want) or am I still able to send and receive texts with my wifi off when I'm away from home.  (When I'm home I am connected to my home data plan automatically through wifi and I get texts when I'm home - but I'm thinking I'm not getting texts in real time - is it because my wifi is off when I'm away from home?  My cellular shows voice only when my wifi is off away from home.  Am I doing it right to receive and send texts away from home?  Or do I need to open up the wifi in order to receive and send text messages.  I know that I would need to turn on wifi roaming - which will use data - for email checking or sending - as well as to use browsing apps and now I'm guessing to receive voice messages I may have missed?  So do I need wifi on to receive texts too?  Thank you - GregorySC

    Hello GregorySC,
    In order to send and receive SMS or MMS messages, you will need to have an active cellular data or Wi-Fi connection.
    You will need these to send and receive iMessages:
    An iPhone, iPad, or iPod touch
    iOS 5.0 or later
    A cellular data connection or a Wi-Fi connection
    A phone number or Apple ID registered with iMessage in Settings > Messages
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Allen

Maybe you are looking for